package pe.org.jhsystem.consola.hilo;

import pe.org.jhsystem.consola.hilo.thread.*;

/**
 *
 * @author jhuamanv
 */
public class ThreadMain {

    public static void main(String[] args) {
        new ThreadDemo();
        try {
            for(int i = 5 ; i >0 ; i--) {
                System.out.println(" Seg: " + i);
                Thread.sleep(1000);
            }
        }catch(InterruptedException e){
            System.out.println("Error: "+e.getCause().toString());
        }
        System.out.println("Saliendo del main");
    }

}
